function [data, remain] = tcpDataConvertor(raw, channelNumber)

data = [];
remain = [];

raw = uint8(raw(:));
n = numel(raw);
data = raw(1:n-mod(n,4*channelNumber));
remain = raw(n-mod(n,4*channelNumber)+1:n);
data = typecast(data,'single');
data = reshape(data, channelNumber, numel(data)/channelNumber);

end